import Vue from "vue"
import VueRouter from "vue-router"
import index from "../components/index.vue"
import list from "../components/list.vue"
import vipLevel from "../components/vipLevel.vue"
import vipList from "../components/vipList.vue"
import addVip from "../components/addVip.vue"
import addLevel from "../components/addLevel.vue"
import addPro from "../components/addPro.vue"
import orderList from "../components/orderList.vue"
import orderDetail from "../components/orderDetail.vue"
import recycle from "../components/recycle.vue"
import vipMessage from "../components/vipMessage.vue"

Vue.use(VueRouter);

export default new VueRouter({
    linkActiveClass: "sel", //路由点击样式类名
    routes: [{
            path: "/",
            redirect: "/index"
        },
        {
            path: "/index",
            name: "index",
            component: index
        },
        {
            path: "/list",
            name: "list",
            component: list
        },
        {
            path: "/vipLevel",
            component: vipLevel
        },
        {
            path: "/vipList",
            component: vipList
        },
        {
            path: "/addVip",
            component: addVip
        },
        {
            path: "/addLevel",
            component: addLevel
        },
        {
            path: "/addPro",
            component: addPro
        },
        {
            path: "/orderList",
            component: orderList,
            name: "orderList"
        },
        {
            path: "/orderDetail",
            component: orderDetail,
            name: "orderDetail"
        },
        {
            path: "/recycle",
            component: recycle,
            name: "recycle"
        },
        {
            path: "/vipMessage",
            component: vipMessage,
            name: "vipMessage"
        }
    ]
})